package com.hcy.userdomin.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hcy.userdomin.domain.entity.User;
import com.hcy.usermodel.dto.request.UserAuthRequestDTO;
import com.hcy.usermodel.dto.response.ManagerPermissionResponseDTO;
import com.hcy.usermodel.dto.response.UserAuthsResponseDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hcy
 * @since 2021-11-20
 */
public interface UserMapper extends BaseMapper<User> {

    UserAuthsResponseDTO getAuthsByName(UserAuthRequestDTO username);

    List<UserAuthsResponseDTO> getUserRoleMenu(String ids);

    Page<UserAuthsResponseDTO> getUserList(Page<UserAuthsResponseDTO> objectPage, @Param("businessCode") String businessCode, @Param("username") String username);
}
